@import '@/styles/variables.scss';

.page-my {
  min-height: 100vh;
  background-color: $bg-color;
  
  .user-info-section {
    position: relative;
    padding: 80rpx 40rpx 40rpx;
    background-color: $primary-color;
    color: #fff;
    
    .user-info {
      display: flex;
      align-items: center;
      
      .avatar {
        width: 120rpx;
        height: 120rpx;
        border-radius: 50%;
        border: 4rpx solid rgba(255, 255, 255, 0.4);
        background-color: rgba(255, 255, 255, 0.2);
        margin-right: 30rpx;
      }
      
      .user-detail {
        flex: 1;
        
        .nickname {
          font-size: 36rpx;
          font-weight: bold;
          margin-bottom: 10rpx;
        }
        
        .user-level {
          font-size: 24rpx;
          background-color: rgba(255, 255, 255, 0.2);
          padding: 4rpx 16rpx;
          border-radius: 20rpx;
          display: inline-block;
        }
      }
      
      .setting-btn {
        padding: 10rpx;
        
        .icon {
          font-size: 40rpx;
        }
      }
    }
    
    .user-data {
      display: flex;
      justify-content: space-around;
      margin-top: 40rpx;
      
      .data-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        
        .num {
          font-size: 32rpx;
          font-weight: bold;
          margin-bottom: 6rpx;
        }
        
        .label {
          font-size: 24rpx;
          opacity: 0.8;
        }
      }
    }
    
    .login-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 20rpx;
      
      .avatar {
        width: 120rpx;
        height: 120rpx;
        border-radius: 50%;
        border: 4rpx solid rgba(255, 255, 255, 0.4);
        background-color: rgba(255, 255, 255, 0.2);
        margin-bottom: 20rpx;
      }
      
      .login-text {
        height: 70rpx;
        line-height: 70rpx;
        background-color: #fff;
        color: $primary-color;
        font-size: 28rpx;
        text-align: center;
        border-radius: 35rpx;
        padding: 0 40rpx;
      }
    }
  }
  
  .order-section {
    margin: 20rpx;
    border-radius: 12rpx;
    background-color: #fff;
    overflow: hidden;
    
    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 30rpx;
      border-bottom: 1rpx solid $border-color-light;
      
      .header-left {
        font-size: 30rpx;
        font-weight: bold;
        color: $text-color-primary;
      }
      
      .header-right {
        font-size: 26rpx;
        color: $text-color-secondary;
        
        .arrow {
          margin-left: 6rpx;
        }
      }
    }
    
    .order-types {
      display: flex;
      padding: 30rpx 0;
      
      .order-type {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        
        .icon {
          width: 60rpx;
          height: 60rpx;
          margin-bottom: 16rpx;
        }
        
        .type-name {
          font-size: 24rpx;
          color: $text-color-secondary;
        }
        
        .badge {
          position: absolute;
          top: -10rpx;
          right: 20rpx;
          min-width: 32rpx;
          height: 32rpx;
          padding: 0 8rpx;
          background-color: $primary-color;
          color: #fff;
          font-size: 20rpx;
          border-radius: 16rpx;
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }
    }
  }
  
  .menu-section {
    margin: 20rpx;
    border-radius: 12rpx;
    background-color: #fff;
    overflow: hidden;
    
    .menu-item {
      display: flex;
      align-items: center;
      padding: 30rpx;
      border-bottom: 1rpx solid $border-color-light;
      
      &:last-child {
        border-bottom: none;
      }
      
      .icon {
        width: 50rpx;
        height: 50rpx;
        margin-right: 20rpx;
      }
      
      .item-name {
        flex: 1;
        font-size: 28rpx;
        color: $text-color-primary;
      }
      
      .arrow {
        font-size: 24rpx;
        color: $text-color-secondary;
      }
    }
  }
  
  .logout-btn {
    margin: 40rpx 20rpx;
    height: 80rpx;
    line-height: 80rpx;
    background-color: #fff;
    color: $text-color-secondary;
    font-size: 28rpx;
    text-align: center;
    border-radius: 12rpx;
  }
} 